//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package Snake;

import java.util.Random;

public class Grid {
    private int x;
    private int y;

    public Grid() {
    }

    public Grid(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return this.x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return this.y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public void randomXY() {
        Random r = new Random();
        this.x = r.nextInt(58) * 10;
        this.y = r.nextInt(36) * 10 + 1;
    }
}
